{block name="circle_layout"}
	{include file="common:common_layout"}
{/block}
{extend name="common/layout" /}
                    {block name="style"}{/block}
                    {block name="content"}
                    <link href="__CIRCLE_TEMPLATES_URL__/css/ubb.css" rel="stylesheet" type="text/css">
                    <div class="group warp-all">
                        {include file="circle:group:group_top" /}

                        <div class="base-layout mt20">
                            <div class="mainbox">
                                <div class="theme-detail-header">
                                    <div class="member-avatar-m"><img src="<?php echo $theme_info['member_avatar'];?>"/></div>
                                    <div class="theme-title"><i class="<?php if($theme_info['is_shut'] == 1){
            	echo 'close';
            }elseif($theme_info['is_stick'] == 1){
            	echo 'top';
            }elseif($theme_info['is_digest'] == 1){
            	echo 'digest';
            }elseif($theme_info['theme_special']==1){
				echo 'poll';
            }else{
            	echo 'normal';
            }?>" title=""></i>
                    <h3><?php echo $theme_info['theme_name'];?></h3>
                </div>
                <div class="theme-info-a"> <a href="javascript:void(0)" ><?php echo $theme_info['member_name'];?></a><span class="floor">(楼主)</span>
                    <?php echo memberLevelHtml($member_list[$theme_info['member_id']]);?>
                </div>
                <div class="theme-info-b">
                    <?php if($theme_info['member_id'] == session('member_id')){?>
                    <span class="addtime">发表于<em><?php echo @date('Y-m-d', $theme_info['theme_addtime']);?></em></span><span class="theme-edit"><i></i><a href="{:url('theme/edit_theme',array('c_id'=>$c_id,'t_id'=>$t_id))}">编辑话题</a></span>
                    <?php }?>
                </div>
                <div class="buttons"><a href="javascript:history.back();" class="back"><i></i>返回</a>
                    <?php if(sysconf('circle_istalk') == 1){?>
                    <div class="post-btn"><a href="{:url('theme/new_theme',array('c_id'=>$c_id))}" class="new-theme"><i></i>新话题</a>
                        <div class="sub-menu"><span class="arrow"></span>
                            <ul>
                                <li class="new-poll"><a href="{:url('theme/new_theme',array('sp'=>1,'c_id'=>$c_id))}"><i></i>新投票</a></li>
                            </ul>
                        </div>
                    </div>
                    <a href="#quickReply" class="reply-theme"><i></i>回复</a>
                    <?php }?>
                </div>
            </div>
            <?php if($theme_info['theme_special'] == 1){ ?>
            	{include file="circle:theme:detail_poll" /}
            <?php }?>
            <div class="theme-detail-content">
                <?php if($theme_info['is_closed'] == '0'){?>
                <div class="main-text"><?php echo ubb($theme_info['theme_content']);?></div>
                <?php if($theme_info['theme_edittime'] != ''){?>
                <div class="theme-edittime"><span><?php echo $theme_info['theme_editname'];?>&nbsp;于&nbsp;<?php echo @date('Y-m-d', $theme_info['theme_edittime'])?>&nbsp;最后编辑</span></div>
                <?php }?>
                <?php if(!empty($goods_list)){?>
                <div class="theme-content-goods">
                    <h4><i></i>相关商品</h4>
                    <ul>
                        <?php foreach(($goods_list) as $val){?>
                        <li>
                            <div class="goods-pic thumb"><a href="javascript:void(0);"><img src="<?php echo $val['image'];?>" class="t-img" /></a></div>
                            <div class="goods-name"><?php echo $val['goods_name'];?></div>
                            <div class="goods-price"><em><?php echo $val['goods_price'];?></em></div>
                            <a href="<?php echo $val['thg_url'];?>" class="goto" target="_blank">商品详情</a> </li>
                        <?php }?>
                    </ul>
                </div>
                <?php }?>
                <?php if(!empty($affix_list)){?>
                <div class="theme-content-file clearfix">
                    <h4 class="file-hidden-btn"><i></i>相关图片</h4>
                    <div class="file-hidden"> <i class="arrow"></i>
                        <ul>
                            <?php foreach(($affix_list) as $val){?>
                            <li><a href="{:themeImageUrl($val['affix_filename'])}" class="nyroModal" rel="gal" title="话题“<?php echo $theme_info['theme_name'];?>”中的附件"><img src="<?php echo themeImageUrl($val['affix_filethumb']);?>"/></a> </li>
                            <?php }?>
                        </ul>
                    </div>
                </div>
                <?php }?>
                <?php }else{?>
                <div class="main-text theme-detail-nospeak">被禁言用户</div>
                <?php }?>
                <div class="handle-bar">
                    <?php if($super || in_array($identity, array(1,2))){?>
                    <div class="manage"> <a href="javascript:void(0);" class="manage-button">话题管理</a> <span class="manage-content"> <a href="javascript:void(0);" nctype="<?php if($theme_info['is_digest'] == 0){?>themeDigestYes<?php }else{?>themeDigestNo<?php }?>">
                        <?php if($theme_info['is_digest'] == 0){echo '精华';}else{echo '取消精华';}?>
                    </a> <a href="javascript:void(0);" nctype="<?php if($theme_info['is_stick'] == 0){?>themeTopYes<?php }else{?>themeTopNo<?php }?>">
                        <?php if($theme_info['is_stick'] == 0){echo '置顶';}else{echo '取消置顶';}?>
                    </a> <a href="javascript:void(0);" nctype="<?php if($theme_info['is_closed'] == 0){?>themeCloseYes<?php }else{?>themeCloseNo<?php }?>" data-param="<?php echo $theme_info['member_id'];?>">
                        <?php if($theme_info['is_closed'] == 0){echo '禁言';}else{echo '解除禁言';}?>
                    </a> <a href="javascript:void(0);" nctype="<?php if($theme_info['is_shut'] == 0){?>themeShutYes<?php }else{?>themeShutNo<?php }?>">
                        <?php if($theme_info['is_shut'] == 0){echo '关闭';}else{echo '开启';}?>
                    </a> <a href="{:url('manage/edit_theme',array('c_id'=>$c_id,'t_id'=>$t_id))}">编辑</a> <a href="javascript:void(0);" nctype="themeDelManage">删除</a> </span> </div>
                    <?php }?>
                    <div class="normal"> <a href="{:url('theme/theme_detail')}?c_id={$c_id}&t_id={$t_id}<?php if(I('get.only_id') == ''){?>&only_id={$val['member_id']}<?php }?>" class="noborder">
                        <!--<?php if(I('get.only_id') != ''){echo '查看全部';}else{echo '只看TA的内容';}?>-->
                    </a> <a href="javascript:void(0);" nctype="<?php if($theme_onlike == 1){?>themeLikeYes<?php }else{?>themeLikeNo<?php }?>">
                        <?php if($theme_onlike == 1){echo '赞';}else{echo '取消赞';}?>
                        (<em nctype="like"><?php echo $theme_info['theme_likecount'];?></em>) </a>
                        <a href="#quickReply"> 回复(<?php echo $theme_info['theme_commentcount'];?>) </a>
                        <a href="javascript:void(0);" nctype="themeShare"> 分享(<em nctype="share"><?php echo $theme_info['theme_sharecount'];?></em>) </a>
                        <?php if($identity == 3){?>
                        <a href="javascript:void(0);" nctype="inform"> 举报 </a>
                        <?php }?>
                    </div>
                </div>
            </div>
            <?php if(!empty($reply_info)){?>
            <ul class="theme-reply-list">
                <?php foreach (($reply_info) as $k=>$val){?>
                <li class="reply-info" id="f<?php echo $val['reply_id'];?>">
                    <dl>
                        <dt class="membar-name"> <a href="javascript:void(0);"><?php echo $val['member_name'];?></a>
                            <?php echo memberLevelHtml($member_list[$val['member_id']]);?>
                            <span class="addtime"><?php echo @date('Y-m-d H:i', $val['reply_addtime']);?></span>
                            <?php if($val['reply_replyid'] != ''){?>
                            <!-- <span class="reply-floor"><a href="<?php echo spellInformUrl(array('circle_id'=>$val['circle_id'], 'theme_id'=>$val['theme_id'], 'reply_id'=>$val['reply_replyid']));?>">回复&nbsp;<?php echo $val['reply_replyid'];?>楼&nbsp;<?php echo $val['reply_replyname']?>&nbsp;的帖子</a></span> -->
                            <?php }?>
                        </dt>
                        <?php if($val['member_id'] == session('member_id')){?>
                        <dd class="reply-manage"> <span>我的管理<i></i></span><span class="hidden"><a href="{:url('theme/edit_reply',array('c_id'=>$c_id,'t_id'=>$t_id,'r_id'=>$val['reply_id']))}">编辑我的回复</a><a href="Javascript: void(0)" nctype="del_reply" data-param="<?php echo $val['reply_id'];?>">删除我的回复</a></span> </dd>
                        <?php }?>
                        <?php if(intval($reply_replyid) > 0){?>
                        <dd>回复&nbsp;#<?php echo $reply_replyid;?>楼#&nbsp;<?php echo $reply_replyname;?>&nbsp;的帖子</dd>
                        <?php }?>
                        <dd class="member-avatar-m"><img src="<?php echo $val['member_avatar'];?>" /></dd>
                        <?php if($val['is_closed'] == '0'){?>
                        <dd class="reply-content"><?php echo ubb($val['reply_content']);?></dd>
                        <?php if(!empty($reply_affix[$val['reply_id']])){?>
                        <dd class="reply-file clearfix">
                            <h4><i></i>相关附件</h4>
                            <ul>
                                <?php foreach($reply_affix[$val['reply_id']] as $val){?>
                                <li> <a href="<?php echo themeImageUrl($val['affix_filename']);?>" class="nyroModal" rel="gal" title="“<?php echo $val['reply_id'];?>楼”回复中的附件"><img src="<?php echo themeImageUrl($val['affix_filethumb']);?>"/></a> </li>
                                <?php }?>
                            </ul>
                        </dd>
                        <?php }?>
                        <?php if(!empty($reply_goods[$val['reply_id']])){?>
                        <dd class="reply-goods clearfix">
                            <h4><i></i>相关商品</h4>
                            <ul>
                                <?php foreach ($reply_goods[$val['reply_id']] as $val){?>
                                <li>
                                    <div class="goods-pic thumb size30"><a href="javascript:void(0);" class="size30"><img src="<?php echo $val['image'];?>" class="t-img" /></a></div>
                                    <div class="goods-name"><?php echo $val['goods_name'];?></div>
                                    <div class="goods-price"><em><?php echo $val['goods_price'];?></em></div>
                                    <a href="<?php echo $val['thg_url'];?>" class="goto" target="_blank">商品详情</a> </li>
                                <?php }?>
                            </ul>
                        </dd>
                        <?php }?>
                        <?php }else{?>
                        <dd class="reply-content reply-nospeak">被禁言用户</dd>
                        <?php }?>
                        <dd class="floor"><?php echo $val['reply_id'];?>楼</dd>


                <!-- 楼中楼开始 -->
                	{volist name="$val.child" id="vo" key='i'}
						<dl class="louzhonglou">
	                        <dt class="membar-name"> <a href="javascript:void(0);"><?php echo $vo['member_name'];?></a>
	                        	&nbsp;回复&nbsp;<?php echo $vo['reply_replyname'];?>
	                            <?php echo memberLevelHtml($member_list[$vo['member_id']]);?>
	                            <span class="addtime"><?php echo @date('Y-m-d H:i', $vo['reply_addtime']);?></span>
	                            <?php if($vo['reply_replyid'] != ''){?>
	                            <!-- <span class="reply-floor"><a href="<?php echo spellInformUrl(array('circle_id'=>$vo['circle_id'], 'theme_id'=>$vo['theme_id'], 'reply_id'=>$vo['reply_replyid']));?>">回复&nbsp;<?php echo $vo['reply_replyid'];?>楼&nbsp;<?php echo $vo['reply_replyname']?>&nbsp;的帖子</a></span> -->
	                            <?php }?>
	                        </dt>
	                        <?php if($vo['is_closed'] == '0'){?>
	                        <dd class="reply-content"><?php echo ubb($vo['reply_content']);?>
	
	                            <div class="handle-bar">
	                            <?php if($super || in_array($identity, array(1,2))){?>
	                            <div class="manage"> <a href="javascript:void(0);" class="manage-button">回复管理</a> <span class="manage-content"> <a href="javascript:void(0);" nctype="<?php if($vo['is_closed'] == 0){?>themeCloseYes<?php }else{?>themeCloseNo<?php }?>" data-param="<?php echo $vo['member_id'];?>">
	                                <?php if($vo['is_closed'] == 0){echo '禁言';}else{echo '解除禁言';}?>
	                            </a> <a href="javascript:void(0);" nctype="replyDelManage" data-param="<?php echo $vo['reply_id'];?>">删除</a></span> </div>
	                            <?php }?>
	                            <div class="normal"> 
	                                <a href="{:url('theme/reply',array('c_id'=>$c_id,'t_id'=>$t_id,'answer_id'=>$vo['reply_id']))}">回复</a>
	                                <?php if(in_array($identity, array(1,2,3))){?>
	                                <a href="javascript:void(0);" nctype="inform" data-param="{r_id:<?php echo $vo['reply_id'];?>}">举报</a>
	                                <?php }?>
	                            </div>
	                        </div>
	
	
	                        </dd>
	                        <?php if($vo['member_id'] == session('member_id')){?>
	                        <!-- <dd class="reply-manage"> <span>我的管理<i></i></span><span class="hidden"><a href="{:url('theme/edit_reply',array('c_id'=>$c_id,'t_id'=>$t_id,'r_id'=>$vo['reply_id']))}">编辑我的回复</a><a href="Javascript: void(0)" nctype="del_reply" data-param="<?php echo $vo['reply_id'];?>">删除我的回复</a></span> </dd> -->
	                        <?php }?>
	                        <!--<?php if(intval($reply_replyid) > 0){?>
	                        <dd>回复&nbsp;#<?php echo $reply_replyid;?>楼#&nbsp;<?php echo $reply_replyname;?>&nbsp;的帖子</dd>
	                        <?php }?>-->
	                        <dd class="member-avatar-m"><img src="<?php echo $vo['member_avatar'];?>" /></dd>
	                        
	                        <?php if(!empty($reply_affix[$vo['reply_id']])){?>
	                       <!-- <dd class="reply-file clearfix">
	                            <h4><i></i>相关附件</h4>
	                            <ul>
	                                <?php foreach($reply_affix[$vo['reply_id']] as $vo){?>
	                                <li> <a href="<?php echo themeImageUrl($vo['affix_filename']);?>" class="nyroModal" rel="gal" title="“<?php echo $vo['reply_id'];?>楼”回复中的附件"><img src="<?php echo themeImageUrl($vo['affix_filethumb']);?>"/></a> </li>
	                                <?php }?>
	                            </ul>
	                        </dd>-->
	                        <?php }?>
	                        <?php if(!empty($reply_goods[$vo['reply_id']])){?>
	                        <!--<dd class="reply-goods clearfix">
	                            <h4><i></i>相关商品</h4>
	                            <ul>
	                                <?php foreach ($reply_goods[$vo['reply_id']] as $vo){?>
	                                <li>
	                                    <div class="goods-pic thumb size30"><a href="javascript:void(0);" class="size30"><img src="<?php echo $vo['image'];?>" class="t-img" /></a></div>
	                                    <div class="goods-name"><?php echo $vo['goods_name'];?></div>
	                                    <div class="goods-price"><em><?php echo $vo['goods_price'];?></em></div>
	                                    <a href="<?php echo $vo['thg_url'];?>" class="goto" target="_blank">商品详情</a> </li>
	                                <?php }?>
	                            </ul>
	                        </dd>-->
	                        <?php }?>
	                        <?php }else{?>
	                        <dd class="reply-content reply-nospeak">被禁言用户</dd>
	                        <?php }?>
	                        <!-- <dd class="floor"><?php echo $vo['reply_id'];?>楼</dd> -->
	                        <!-- <dd class="handle-bar">
	                            <?php if($super || in_array($identity, array(1,2))){?>
	                            <div class="manage"> <a href="javascript:void(0);" class="manage-button"><?php echo $vo['reply_id'];?>楼&nbsp;回复管理</a> <span class="manage-content"> <a href="javascript:void(0);" nctype="<?php if($vo['is_closed'] == 0){?>themeCloseYes<?php }else{?>themeCloseNo<?php }?>" data-param="<?php echo $vo['member_id'];?>">
	                                <?php if($vo['is_closed'] == 0){echo '禁言';}else{echo '解除禁言';}?>
	                            </a> <a href="javascript:void(0);" nctype="replyDelManage" data-param="<?php echo $vo['reply_id'];?>">删除</a></span> </div>
	                            <?php }?>
	                            <div class="normal"> <a href="{:url('theme/theme_detail')}?c_id={$c_id}&t_id={$t_id}<?php if(I('get.only_id') == ''){?>&only_id={$vo['member_id']}<?php }?>">
	                                <?php if(I('get.only_id') != ''){echo '查看全部';}else{echo '只看TA的内容';}?>
	                            </a>
	                                <a href="{:url('theme/reply',array('c_id'=>$c_id,'t_id'=>$t_id,'answer_id'=>$vo['reply_id']))}">回复</a>
	                                <?php if(in_array($identity, array(1,2,3))){?>
	                                <a href="javascript:void(0);" nctype="inform" data-param="{r_id:<?php echo $vo['reply_id'];?>}">举报</a>
	                                <?php }?>
	                            </div>
	                        </dd> -->
	                    </dl>
                    {/volist}
                <!-- 楼中楼结束 -->


                        <dd class="handle-bar">
                            <?php if($super || in_array($identity, array(1,2))){?>
                            <div class="manage"> <a href="javascript:void(0);" class="manage-button"><?php echo $k+1;?>楼&nbsp;回复管理</a> <span class="manage-content"> <a href="javascript:void(0);" nctype="<?php if($val['is_closed'] == 0){?>themeCloseYes<?php }else{?>themeCloseNo<?php }?>" data-param="<?php echo $val['member_id'];?>">
                                <?php if($val['is_closed'] == 0){echo '禁言';}else{echo '解除禁言';}?>
                            </a> <a href="javascript:void(0);" nctype="replyDelManage" data-param="<?php echo $val['reply_id'];?>">删除</a></span> </div>
                            <?php }?>
                            <div class="normal"> <a href="{:url('theme/theme_detail')}?c_id={$c_id}&t_id={$t_id}<?php if(I('get.only_id') == ''){?>&only_id={$val['member_id']}<?php }?>">
                                <!--<?php if(I('get.only_id') != ''){echo '查看全部';}else{echo '只看TA的内容';}?>-->
                            </a>
                                <a href="{:url('theme/reply',array('c_id'=>$c_id,'t_id'=>$t_id,'answer_id'=>$val['reply_id']))}">回复</a>
                                <?php if(in_array($identity, array(1,2,3))){?>
                                <a href="javascript:void(0);" nctype="inform" data-param="{r_id:<?php echo $val['reply_id'];?>}">举报</a>
                                <?php }?>
                            </div>
                        </dd>
                    
                        
                        
                        
                    </dl>
                </li>
                <?php }?>
            </ul>
            <div class="pagination"><?php echo $show_page;?></div>
            <?php }?>
            <div class="quick-reply">
                <?php if(!intval(sysconf('circle_istalk'))){?>
                <div class="ban">网站已经关闭回复话题功能</div>
                <?php }else if($theme_info['is_shut'] == 1){?>
                <div class="ban">本话题已经关闭</div>
                <?php }else if(session('is_login') != 1){?>
                <div class="ban">您目前还没有登录，请先<a href="javascript:void(0);" nctype="login">登录</a></div>
                <?php }else if(in_array($identity, array(0,5))){?>
                <div class="ban"> 请您先<a href="javascript:void(0);" nctype="apply">加入本圈</a>后再发帖</div>
                <?php }else if($identity == 4){?>
                <div class="ban"> 等待申请审核通过后才能发表话题</div>
                <?php }else if($identity == 6){?>
                <div class="ban">被禁言，不能回复话题。</div>
                <?php }?>
                <div class="quick-reply-member"><a id="quickReply"></a>
                    <div class="member-avatar-m"><img src="<?php echo session('avatar')?session('avatar'):'__UPLOAD_PATH__/shop/common/default_user_portrait.gif';?>"/></div>
                </div>
                <form method="post" id="reply_form" action="{:url('theme/save_reply')}?c_id={$c_id}&t_id={$t_id}">
                    <input type="hidden" name="form_submit" value="ok" />
                    <!-- <?php echo showMiniEditor('replycontent', '', 'hQuickReply');?> -->
                       <?php echo showEditor('replycontent',$replycontent,'756px','200px','visibility:hidden;',"true",$editor_multimedia,'simple');?>
                    <div class="bottom"> <a class="submit-btn" nctype="reply_submit" href="Javascript: void(0)">发表回复</a>
                        <div id="warning"></div>
                    </div>
                </form>
                <div class="clear"></div>
            </div>
        </div>
        {include file="circle/group/group_sidebar" /}

        <div class="clear"></div>
    </div>
</div>
<script type="text/javascript" src="<?php echo __SITE_RESOURCE__;?>/js/fileupload/jquery.iframe-transport.js" charset="utf-8"></script>
<script type="text/javascript" src="<?php echo __SITE_RESOURCE__;?>/js/fileupload/jquery.ui.widget.js" charset="utf-8"></script>
<script type="text/javascript" src="<?php echo __SITE_RESOURCE__;?>/js/fileupload/jquery.fileupload.js" charset="utf-8"></script>
<script type="text/javascript" src="<?php echo __CIRCLE_RESOURCE__;?>/js/miniditor/jquery.insertsome.min.js"></script>
<script type="text/javascript" src="<?php echo __CIRCLE_RESOURCE__;?>/js/miniditor/ubb.insert.js" charset="utf-8"></script>
<link href="<?php echo __SITE_RESOURCE__;?>/js/jquery.nyroModal/styles/nyroModal.css" rel="stylesheet" type="text/css">
<script type="text/javascript" src="<?php echo __SITE_RESOURCE__;?>/js/jquery.nyroModal/custom.min.js"></script>
<script type="text/javascript" src="<?php echo __SITE_RESOURCE__;?>/js/jquery.validation.min.js"></script>
<script type="text/javascript">
    var c_id = <?php echo $c_id;?>;
    var t_id = <?php echo $t_id;?>;
    $(function(){
        // UBB
        $('.quick-reply').ncUBB({
            c_id : c_id,
            t_id : t_id,
            UBBContent : $('#replycontent'),
            UBBSubmit : $('a[nctype="reply_submit"]'),
            UBBform : $('#reply_form'),
            UBBfileuploadurl : "{:url('theme/image_upload')}?c_id="+c_id,
            UBBcontentleast : <?php echo intval(sysconf('circle_contentleast'));?>
	});
	//附件隐藏/显示
	$(".file-hidden-btn").click(function(){
		$(".file-hidden").slideToggle(100);
	});
	//附件放大查看
	$('.nyroModal').nyroModal();

//横高局中比例缩放隐藏显示图片

	$(".theme-content-goods .t-img").VMiddleImg({"width":60,"height":60});
	$(".reply-goods .t-img").VMiddleImg({"width":30,"height":30});

	// 表单验证
    $('#reply_form').validate({
        errorLabelContainer: $('#warning'),
        invalidHandler: function(form, validator) {
               $('#warning').show();
        },
    	submitHandler:function(form){
    		ajaxpost('reply_form', "{:url('circle/theme/save_reply')}?c_id="+c_id+"&t_id="+t_id, '', 'onerror');
    	},
        rules : {
        	replycontent : {
                required : true
                <?php if(intval(sysconf('circle_contentleast')) > 0){?>
                ,minlength : <?php echo intval(sysconf('circle_contentleast'));?>
                <?php }?>
            }
        },
        messages : {
        	replycontent  : {
                required : '请填写内容'
        <?php if(intval(sysconf('circle_contentleast')) > 0){?>
                ,minlength : "<?php printf('内容不能少于%d个字符', intval(sysconf('circle_contentleast')));?>"
        <?php }?>
        }
        }
        });

        $('a[nctype="del_reply"]').click(function(){
            var r_id = $(this).attr('data-param');
            showDialog('您确定要删除吗?', 'confirm', '', function(){
            _uri = "{:url('circle/theme/del_reply')}?c_id="+c_id+"&t_id="+t_id+"&r_id="+r_id;
            ajaxget(_uri);
        });
        });

        // share
        $('a[nctype="themeShare"]').click(function(){
            if(_ISLOGIN){
            var _uri = "{:url('circle/themeshare/index')}?c_id="+c_id+"&t_id="+t_id;
            CUR_DIALOG = ajax_form('share', '分享话题', _uri, 480);
        }else{
            login_dialog();
        }
        });
        // inform
        $('a[nctype="inform"]').click(function(){
            if(_ISLOGIN){
            var _uri = "{:url('themeinform/index')}?c_id="+c_id+"&t_id="+t_id;
            var _title = '举报话题';
            if(typeof($(this).attr('data-param')) != 'undefined'){
            var data_str = $(this).attr('data-param'); eval('data_str = ' + data_str);
            _uri += '&r_id='+data_str.r_id;
            _title = '举报回复';
        }
            ajax_form('inform', _title, _uri, 520);
        }else{
            login_dialog();
        }
        });
        });
</script>
{/block}
